# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class Records(object):

    def __init__(self, record, weight=None, ttl=None, prior=None, port=None):
        """
        :param record:  解析记录值
        :param weight: (Optional) 权重，A/AAAA权重范围：0-100、CNAME/JNAME权重范围：1-100。
        :param ttl: (Optional) 这条解析记录的TTL
        :param prior: (Optional) 优先级，只存在于MX类型的解析记录
        :param port: (Optional) 端口，只存在于SRV类型解析记录
        """

        self.record = record
        self.weight = weight
        self.ttl = ttl
        self.prior = prior
        self.port = port
